<?php
if (isset($GLOBALS["HTTP_RAW_POST_DATA"]))
{
	// get bytearray
	$file = $GLOBALS["HTTP_RAW_POST_DATA"];

	// add headers for download dialog-box
	header('Content-Type: application/rss+xml');
	header("Content-Disposition: attachment; filename=".$_GET['name']);
	echo $file;
}

?>